package com.goods.business.mapper;

import com.goods.common.model.business.ProductStock;
import com.goods.common.vo.business.ProductStockVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@Repository
public interface ProductStockMapper extends Mapper<ProductStock> {
    /**
     * 加载库存信息
     * @param name
     * @param oneCategoryId
     * @param twoCategoryId
     * @param threeCategoryId
     * @return
     */
    List<ProductStockVO> findProductStocks(String name, @Param("oneCategoryId") Long oneCategoryId, @Param("twoCategoryId") Long twoCategoryId, @Param("threeCategoryId") Long threeCategoryId);
}
